package entity;

import java.util.Calendar;
import java.util.GregorianCalendar;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class Settings extends XMLentity {
	private final String rootKey = "settings";
	private String id;
	private Calendar cal = new GregorianCalendar();
	private boolean mailActive;
	private String email;
	private String password;
	private double savingPotAmt;
	private double toBeSaveAmt;

	public Settings() {
		id = "today";
	}

	@XmlAttribute
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public boolean getMailActive() {
		return mailActive;
	}

	public void setMailActive(boolean mailActive) {
		this.mailActive = mailActive;
	}

	public Calendar getCal() {
		return cal;
	}

	public void setCal(Calendar cal) {
		this.cal = cal;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public double getSavingPotAmt() {
		return savingPotAmt;
	}

	public double getToBeSaveAmt() {
		return toBeSaveAmt;
	}

	public void setSavingPotAmt(double savingPotAmt) {
		this.savingPotAmt = savingPotAmt;
	}

	public void setToBeSaveAmt(double toBeSaveAmt) {
		this.toBeSaveAmt = toBeSaveAmt;
	}

}
